<div class="amp-container">
  <h3 class="amp-header"><?php echo $action_title; ?></h3>

  <?php while ($obj = $data->next()) { ?>
  <div class="amp-content">
    <?php
    $elements->reset();

    while ($element = $elements->next()) {
      echo $element->render($obj, $action);
    }
    ?>

    <nav class="toolbar-container">
      <ul class="toolbar">
        <li class="toolbar-item">
          <?php echo $this->menu_item->show(array('label' => 'Edit', 'icon' => 'edit', 'route' => $route, 'params' => array('action' => 'edit', $pk => $obj->$pk))) ?>
        </li>
        <?php if ($obj->$pk) { ?>
        <li class="toolbar-item">
            <?php echo $this->menu_item->show(array('label' => 'Delete', 'icon' => 'delete', 'route' => $route,
              'params' => array('action' => 'delete', $pk => $obj->$pk), 'linkParams' => array('onclick' => "return confirm('Do you confirm this action?');"))) ?>
          </li>
        <?php } ?>
      </ul>

      <div style="clear:both;"></div>
    </nav>

    <div style="clear:both;"></div>
  </div>
  <?php } ?>
</div>